vtd: Fix apic pin to interrupt remapping table index
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 3 Jun 2009 11:59:44 +0000 (12:59 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 3 Jun 2009 11:59:44 +0000 (12:59 +0100)
commit72074b950b9f6db16746195ed94a55091d1984fe
tree88d6c7d1b042f5b36c3b11816c0525199c9baa26
parent7233b972ffe614057aa1eb81ca9b70b79962b55c
vtd: Fix apic pin to interrupt remapping table index

Originally, it calls xmalloc to set index in
ioapic_rte_to_remap_entry(). When make with debug=y, it may trigger
spinlock BUG_ON because allocate memory with interrupt disabled.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/drivers/passthrough/vtd/intremap.c